-- GENERATED SPELL FOR [Rockjaw Bonesnapper] --


function spell0_1117(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(5164,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1117', 2000, 1)
end

function Sorts_1117(pUnit, Event)
local choix_sorts_1117 = math.random(0, 0)
if choix_sorts_1117 == 0 then
pUnit:RegisterEvent('spell0_1117', 1, 1)
end
end

function mob1117_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1117', math.random(1500, 3000), 1)
end

function mob1117_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1117_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1117_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1117, 1, 'mob1117_Action')
RegisterUnitEvent(1117, 2, 'mob1117_Leave')
RegisterUnitEvent(1117, 3, 'mob1117_Kill')
RegisterUnitEvent(1117, 4, 'mob1117_Die')
